package com.x.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * ClassName: helloController
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.09.10 21:03
 */

@Controller
public class HelloController {



    @RequestMapping("springMVC/hello")
    @ResponseBody //直接返回字符串，不要查找视图资源
    public String hello(){
        System.out.println("HelloController.java");
        return "Hello springMVC quick start!";
    }
}
